import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import mycs from '@/components/mycs'
import myorder from '@/components/myorder'
import mylogin from '@/components/mylogin'
import mypl from '@/components/mypl'
import indexpl from '@/components/indexpl'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    //测试页
    {
      path: '/mycs',
      name: 'mycs',
      component: mycs
    },
    //顶单页
    {
      path: '/myorder',
      name: 'myorder',
      component: myorder
    },
    //登录页
    {
      path: '/mylogin',
      name: 'mylogin',
      component: mylogin
    },
    //评论页
    {
      path: '/mypl',
      name: 'mypl',
      component: mypl
    },
    //查看评论
    {
      path: '/indexpl',
      name: 'indexpl',
      component: indexpl
    },
  ]
  
})

